<?php if(!empty($output['order_list']) && is_array($output['order_list']) ){ ?>
    <?php  foreach($output['order_list'] as $k =>$v){ ?>

        <div class="group-order">
            <div class="go-title">发起者：<samp><?php echo $output['member_name']; ?></samp><span>时间：<?php  echo date('Y-m-d H:i:s',$v['add_time']); ?></span></div>
            <div class="commodity">
                <div>
                    <div class="commodity-img">
                        <a href="index.php?act=bargain&op=bargain_info&bargain_id=<?php echo $v['bargain_id'];?>"><img src="<?php echo  getbargain_img($v['bg_thumb']); ?>" /></a>
                    </div>
                    <div class="commodity-con">
                        <div class="commodity-title"><a href="index.php?act=bargain&op=bargain_info&bargain_id=<?php echo $v['bargain_id'];?>"><?php echo $v['bg_title']; ?></a></div>
                        <?php if(!empty($v['add_ress_id'])) {?>
                            <div class="commodity-code">券码：<?php echo $v['bg_order_code']; ?></div>
                        <?php  }else{ ?>
                            <div class="commodity-code" style='font-size: 1rem;margin-top:0.5rem;'>订单号：<?php echo $v['bg_order_sn']; ?></div>
                        <?php  }?>
                        <?php if($v['if_winners']==1) {?>
                            <img src="resource/images/u504.png" class="chapter" />
                        <?php } ?>
                        <div class="commodity-price">
                            <?php if($v['bg_order_status']==20 || $v['bg_order_status']=='21'  || $v['bg_order_status'] == '40' || $v['bg_order_status'] == '41'){?>
                                <a href="index.php?act=bargain_order&op=order_info&order_id=<?php echo $v['bg_order_id']; ?>" class="queren">查看详情</a>
                            <?php  } ?>
                            <div class="commodity-state"><span class="xzfd">状态：</span>

                                <?php if($v['bg_order_status']=='20' || $v['bg_order_status']=='21'  || $v['bg_order_status'] == '40' || $v['bg_order_status'] == '41') {?>
                                    <a style="font-size: .8rem;text-align: center;background:#ffcc00;">已完成</a>
                                <?php } elseif($v['bg_order_status']!=='20' && $v['end_time']>time()) { ?>
                                    <a style="font-size: .8rem;text-align: center;">进行中</a>
                                <?php  }else{?>
                                    <samp style="font-size: 15px;">活动结束</samp>
                                <?php  }?>
                            </div>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
    <?php  }?>
<?php   }?>